<?php

/**
 * Created by Reliese Model.
 */

namespace App\Models;

use Carbon\Carbon;

/**
 * Class UserGoodsBehavior
 * 
 * @property int $id
 * @property int $goods_id
 * @property int $uid
 * @property int|null $type
 * @property Carbon|null $create_at
 * @property Carbon|null $update_at
 * @property Carbon|null $delete_at
 *
 * @package App\Models
 */
class UserGoodsBehavior extends BaseModels
{
	protected $table = 'zh_user_goods_behavior';

	const BROWSE = 1; //浏览

	const COLLECT = 2; //收藏

	protected $casts = [
		'goods_id' => 'int',
		'uid' => 'int',
		'type' => 'int'
	];

	protected $dates = [
		'create_at',
		'update_at',
		'delete_at'
	];

	protected $fillable = [
		'goods_id',
		'uid',
		'type',
		'create_at',
		'update_at',
		'delete_at'
	];
}
